package com.itheima.io1.myobjectstream;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;

/**
 * @author zhangbaiyan
 * @date 2024-09-21 19:37
 * @description:反序列化流
 * @version: 1
 */
public class test2 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("u.txt"));

        System.out.println(ois.readObject());
        ois.close();

    }
}
